package com.zmzncs.lmtc.module.shop.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.shop.pojo.shop_info.ShopInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.shop.pojo.shop_info.ShopInfoDTO;
import com.zmzncs.lmtc.module.shop.pojo.shop_info.ShopInfoSelectForm;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 商户-信息 Mapper 接口
 * </p>
 *
 * @author 高博文
 * @since 2021-05-20
 */
@Repository
@Mapper
public interface ShopInfoDao extends BaseMapper<ShopInfo> {

    /**条件分页查询商户信息*/
    IPage<ShopInfoDTO> getShopInfoPage(Page page, ShopInfoSelectForm form);

    /**查询所有商户信息*/
    List<ShopInfoDTO> shopInfoList();

    /**查询管理员名下所有商户信息*/
    List<ShopInfoDTO> getShopInfoByManagerId(Long managerId);

    /**查询没有配置管理员的商户信息*/
    List<ShopInfoDTO> getNoManager();

    /**根据Id查询商户信息*/
    ShopInfoDTO getshopInfoById(Long shopId);

}
